-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#4759] feat(auth-ranger): Use Spark verify Ranger authorization Hive #4948
Conversation
bb0092c
to
d399416
Compare
...e-iceberg/src/test/java/org/apache/gravitino/catalog/lakehouse/iceberg/TestIcebergTable.java
Outdated
Show resolved
Hide resolved
72789d7
to
dba750d
Compare
71e1859
to
b7675dc
Compare
...rc/test/java/org/apache/gravitino/authorization/ranger/integration/test/RangerHiveE2EIT.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/apache/gravitino/storage/relational/database/H2Database.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core/src/main/java/org/apache/gravitino/storage/relational/database/H2Database.java
Outdated
Show resolved
Hide resolved
...st-common/src/test/java/org/apache/gravitino/integration/test/container/RangerContainer.java
Show resolved
Hide resolved
server-common/src/main/java/org/apache/gravitino/server/web/JettyServer.java
Outdated
Show resolved
Hide resolved
server-common/src/main/java/org/apache/gravitino/server/web/JettyServer.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/apache/gravitino/authorization/ranger/integration/test/RangerHiveE2EIT.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/apache/gravitino/authorization/ranger/integration/test/RangerHiveE2EIT.java
Show resolved
Hide resolved
The current shade implement seems to lead to some unexpected behavior, I'm afraid it makes the test class problems more complicated. One possible solution may shaddle |
Do you mean to remove the embedded tests? |
Yes, MiniGravitino provides the facilities to debug easily, but leading complicated class conflict problems, it takes much more time to debug to me. |
I think MiniGravitino is still a necessity.
I think the best way to do this is that we should create a separate MiniGravitino module. |
@xunliu |
Because Jetty server default load https://github.com/jetty/jetty.project/blob/jetty-12.0.x/jetty-core/jetty-deploy/src/test/resources/etc/webdefault.xml#L37, But we rename Don't worry, the Jetty server loads |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except a minor one.
static void startHiveRangerContainer() { | ||
containerSuite.startHiveRangerContainer( | ||
new HashMap<>( | ||
ImmutableMap.of( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need a nested Map?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right, I already fixed it in the next PR.
What changes were proposed in this pull request?
Why are the changes needed?
Fix: #4759
Does this PR introduce any user-facing change?
N/A
How was this patch tested?
CI Passed.